home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Your Choice 3
/
Your Choice Software Collection 3.iso
/
dos
/
colprint
/
pr3col.bat
< prev
next >
Wrap
DOS Batch File
|
1994-06-26
|
729b
|
28 lines
@echo off
rem
rem Usage: PR3COL infile
rem
rem Reformat the input file to 49 characters/line, then print in 3 columns
rem THIS IS FOR PRINTERS THAT SUPPORT A 20 CHARACTER-PER-INCH PITCH
rem If your printer supports 17 cpi and you want 3 columns, you could change
rem the line length from 49 to 41.
if "%1" == "" echo Usage: PR3COL infile
if "%1" == "" goto end
if not "%2" == "" echo Usage: PR3COL infile
if not "%2" == "" goto end
rap %1 /W49 \rap.tmp
if not ERRORLEVEL EQ 0 goto raperror
colprint.exe \rap.tmp \colprint.tmp /c3
if not ERRORLEVEL EQ 0 goto cperror
print \colprint.tmp
goto end
:raperror
echo Error in RAP processing
goto end
:cperror
echo Error in COLPRINT processing
goto end
:end